﻿@model bdxyit.com.RecruitmentAppSys.Models.ChangePasswordModel

@{
    ViewBag.Title = "修改密码";
}

<h2>修改密码</h2>
<p>
   新密码的长度必须小于 @ViewBag.PasswordLength 个字符.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "密码修改不成功，请确保输入正确，在尝试！")
    <div>
        <fieldset>
            <legend>账户信息</legend>

            <div class="editor-label">
                原密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                新密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                再次输入密码：
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="修改密码" />
            </p>
        </fieldset>
    </div>
}
